/** 定义state的数据类型 */
const state = {
  historyList:['html','js','css']
}

// mutations
const mutations = {
  SET_HISTORY_LIST(state,history){
	state.historyList = history
  }
}

// actions
const actions = {
 set_history({commit,state},history) {
	commit('SET_HISTORY_LIST',history)
 }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
